package com.koron.order.common.service;

import com.github.pagehelper.PageInfo;
import com.koron.bean.query.PageQuery;
import com.koron.order.common.bean.po.OrderWorkDeptPo;
import org.koron.ebs.mybatis.SessionFactory;

import java.util.List;

/**
 * 工单作业单位(OrderWorkDept)表服务接口
 *
 * @author zhouj
 * @since 2022-02-17 15:04:45
 */
public interface OrderWorkDeptService {

    int insertOrUpdate(SessionFactory factory, OrderWorkDeptPo orderWorkDept);

    int insertOrUpdateBatch(SessionFactory factory, List<OrderWorkDeptPo> orderWorkDeptList);

    int insert(SessionFactory factory, OrderWorkDeptPo orderWorkDept);

    int insertBatch(SessionFactory factory, List<OrderWorkDeptPo> orderWorkDeptList);

    int update(SessionFactory factory, OrderWorkDeptPo orderWorkDept);

    int deleteById(SessionFactory factory, String id);

    int deleteByOrderId(SessionFactory factory, String orderId);

    int deleteByDispatchId(SessionFactory factory, String dispatchId);

    OrderWorkDeptPo queryById(SessionFactory factory, String id);

    List<OrderWorkDeptPo> queryByOrderId(SessionFactory factory, String orderId);

    List<OrderWorkDeptPo> queryByOrderIds(SessionFactory factory, List<String> orderIds);

    List<OrderWorkDeptPo> queryByOrderIdTeamId(SessionFactory factory, String orderId, String teamId);

    PageInfo queryPageList(SessionFactory factory, OrderWorkDeptPo orderWorkDept, PageQuery pageQuery);

    List<OrderWorkDeptPo> queryList(SessionFactory factory, OrderWorkDeptPo orderWorkDept);

}
